Skip to content

Conversation

@AllMightLegend
Copy link

#433 Issue
Replaced "node:querystring" with URLSearchParams API

matrix-org#433 Issue
Replaced "node:querystring" with URLSearchParams API
@AllMightLegend AllMightLegend requested a review from a team as a code owner August 9, 2024 23:14
Copy link
Contributor

@tadzik tadzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not look correct. You're passing the http module as a query string to parse, and then using a boolean method to parse.

This should look more like const params= new URLSearchParams(body), and then params.get('user_name') etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants